import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'element-ui/lib/theme-chalk/index.css';
import element from '@/element-ui'
import 'reset-css'
import '@/assets/css/common/common.less'
Vue.config.productionTip = false
import { Message, MessageBox } from 'element-ui'
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
Vue.component(Message.name, Message)
Vue.component(MessageBox.name, MessageBox)
// Vue.component(MessageBox.confirm.name, MessageBox.confirm)
Vue.use(element)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
Vue.filter('formatDateYMD', (time) => {
  let date = new Date(time);
  date.setHours(date.getHours() + 8);
  return date.toJSON().replace('T', ' ').substring(0, 10);
})
